package cn.net.wanji.mapper;

import cn.net.wanji.annotation.DataSource;
import cn.net.wanji.entity.FileCount;
import cn.net.wanji.entity.InspectionStatus;
import cn.net.wanji.entity.VehicleRsuInfo;
import cn.net.wanji.enums.DataSourceType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author guodejun
 * @createTime 2022/11/1 13:29
 * @description
 */
@Mapper
@DataSource(value = DataSourceType.SLAVE)
public interface DataReceiveMapper {

    void insertVehicleRsuInfo(@Param("vehicleRsuInfo") VehicleRsuInfo vehicleRsuInfo);
    VehicleRsuInfo selectVehicleRsuInfo(@Param("vehicleRsuInfo") VehicleRsuInfo vehicleRsuInfo);

    void insertInspectionStatus(@Param("inspectionStatus")InspectionStatus inspectionStatus);

    List<String> selectByDate(@Param("date") String date);
    void deleteVehicleRsuInfoByRecordId(@Param("recordId") String recordId);
    List<FileCount> selectFileCountAuditIsNormalEarliest();
    List<FileCount> selectFileCountAuditAnomaliesEarliest();
    List<FileCount> selectFileCountByDate(@Param("date") String date);
    List<String> selectNoExceptionDataByDate(@Param("date") String date);
    List<String> selectExceptionByDate(@Param("date") String date);
    void deleteFileCountByDate(@Param("date") String date);
    /*<!--批量删除旧数据正常数据-->*/
    void batchDeleteFileCountAuditIsNormalByIds(List<String> ids);
}
